package listener;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: fancyears·milos·malvis
 * @Description:
 * @Date: Created in  2019/4/22 16:44
 * @Modified By:
 */
public class CustomEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public CustomEvent(Object source) {
        super(source);
        System.out.println(source);
    }

    @Override
    public String toString() {
        return "My Custom Event ";
    }
}
